#include "databaseinitializer.h"
QString DatabaseInitializer::dataBaseName="task.db";
DatabaseInitializer::DatabaseInitializer()
{

}

DatabaseInitializer::~DatabaseInitializer()
{

}
QSqlDatabase DatabaseInitializer::getSqliteConnection(){
    connection=QSqlDatabase::addDatabase("QSQLITE");
    connection.setDatabaseName(dataBaseName);
    if(connection.open())
    {
        return &connection;
    }
    return nullptr;
}

